// import Vue from 'vue'
// import Vuex from 'vuex'
/**
 * 公共缓存组件
 * 侧边导航栏折叠效果 asideStatus
 * 管理员头像 adminImg
 * @param state
 * @param item
 */
//
// Vue.use(Vuex)
export default {
    // namespaces: true,
    state: {
    // 商品数据
	shopData:{},
	//sku数据
	skuForm:[],
	//商品图片
	shopImg:null,
	// 尺寸，型号集合
	sizeList:[],
	//样式集合，颜色
	styleList:[],
	//用户登录信息
	loginInfo:null,
	//用户头像
	wxUserInfo:null,
	router: "/pages/info/info",
	backRouter: null,
	payOrder:[],
	payOrderIdList:[],
	allPrice:null,
	shopNum:null,
	activ:0,
	typeNum:null,
	payType:0, //0 未知 1 购物车购买 2 立即购买
	paynowform:null
		
    },
    mutations: {
     shopData(state,shopData){
		 state.shopData = shopData
	 },
	 skuForm(state,skuForm){
		 state.skuForm = skuForm
	 },
	 shopImg(state,shopImg){
		 state.shopImg = shopImg
	 },
	 sizeList(state,sizeList){
		 state.sizeList = sizeList
	 },
	 styleList(state,styleList){
		  state.styleList = styleList
	 },
	 loginInfo(state,loginInfo){
		 state.loginInfo = loginInfo
	 },
	 wxUserInfo(state,wxUserInfo){
	 	state.wxUserInfo = wxUserInfo
	 },
	 router(state,router){
	 	state.router = router
	 },
	 backRouter(state,backRouter){
	 	state.backRouter = backRouter
	 },
	 
	 payOrder(state,payOrder){
	 	state.payOrder = payOrder
	 },
	 payOrderIdList(state,payOrderIdList){
	 	state.payOrderIdList = payOrderIdList
	 },
	 allPrice(state,allPrice){
	 	state.allPrice = allPrice
	 },
	 shopNum(state,shopNum){
	 	state.shopNum = shopNum
	 },
	 activ(state,activ){
	 	state.activ = activ
	 },
	 typeNum(state,typeNum){
	 	state.typeNum = typeNum
	 },
	 payType(state,payType){
		 state.payType = payType
	 },
	 paynowform(state,paynowform){
	 	state.paynowform = paynowform
	 }
	 
	 
	 
	 
	 

    },
    actions: {
    },
    modules: {

    }
}
